#ifndef __BSP_IIC_H__
#define __BSP_IIC_H__

#include "stm32f4xx_hal.h"
#include "stdint.h"


void BspI2Cinit(void);
void BspI2CStratSingle(void);
void BspI2CStopSingle(void);

void BspI2CSendByte(uint8_t dat);
uint8_t BspI2CReadByte(void);

uint8_t BspI2CWaitAck(void);
void BspI2CAck(void);
void BspI2CNAck(void);
uint8_t BspI2CCheckDevice(uint8_t addr);



#endif
